﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KingerRobot.PCRBW.Dao;
partial class Db : K8.EF.DbContext
{
    /// <summary>
    /// 实时监控界面
    /// </summary>
    public DbSet<ScadaBox> ScadaBoxs { get; set; }
}
[Table("scada_box")]
public class ScadaBox
{
    /// <summary>
    /// 主键，通过雪花算法生成
    /// 主键[wcs_task_cmd.objid)]
    /// </summary>
    [Key]
    [Column("objid")]
    public long? Id { get; set; }
    [Column("box_name")]
    public string box_name { get; set; }
    [Column("box_code")]
    public string box_code { get; set; }
    [Column("loc_id")]
    public long? loc_id { get; set; }
    [Column("equip_id")]
    public long? equip_id { get; set; }
    [Column("box_top")]
    public int? box_top { get; set; }
    [Column("box_left")]
    public int? box_left { get; set; }
    [Column("box_width")]
    public int? box_width { get; set; }
    [Column("box_height")]
    public int? box_height { get; set; }
    [Column("box_index")]
    public int? box_index { get; set; }
    [Column("create_time")]
    public DateTime? create_time { get; set; }
    [Column("update_time")]
    public DateTime? update_time { get; set; }
    [Column("use_flag")]
    public int? use_flag { get; set; }
    [Column("show_type")]
    public string show_type { get; set; }
    [Column("show_color")]
    public string show_color { get; set; }
    [Column("show_border")]
    public string show_border { get; set; }
    [Column("show_code")]
    public int? show_code { get; set; }
    [Column("show_name")]
    public string show_name { get; set; }
    [Column("remark_memo")]
    public string remark_memo { get; set; }
    [Column("warning_code")]
    public string warning_code { get; set; }
    [Column("warning_name")]
    public string warning_name { get; set; }
    /// <summary>
    /// 控件类型：1 - 围栏 ，2 - 不合格区 ， 3 - 库位，4 - 滑台
    /// </summary>
    [Column("box_type")]
    public int? box_type { get; set; }
    [Column("parent_id")]
    public long? parent_id { get; set; }
    [Column("tcm_spec")]
    public string tcm_spec { get; set; }
    [Column("tcm_spec_desc")]
    public string tcm_spec_desc { get; set; }
    [Column("box_layers")]
    public int? layers { get; set; }
    /// <summary>
    /// 当前物料
    /// [rcs_location.material_id)]
    /// </summary>
    [Column("material_id")]
    public string MaterialId { get; set; }
    /// <summary>
    /// 当前批次
    /// [rcs_location.product_batch)]
    /// </summary>
    [Column("product_batch")]
    public string ProductBatch { get; set; }
    /// <summary>
    /// 数量
    /// </summary>
    [Column("in_quantity")]
    public int? Inquantity { get; set; }
    /// <summary>
    /// 生产时间
    /// </summary>
    [Column("md_time")]
    public DateTime? MdTime { get; set; }
    /// <summary>
    /// 入库时间
    /// </summary>
    [Column("has_time")]
    public DateTime? HasTime { get; set; }
    /// <summary>
    /// 超期时间
    /// </summary>
    [Column("expiration_time")]
    public DateTime? ExpirationTime { get; set; }



}
